package alo.p6;

/**
 * @ClassName TreeNode
 * @Description N叉树的结点定义
 * @Author Fanxc
 * @DATE 2021/2/2 10:53
 * @Version 1.0
 */
public class TreeNode {
    private int data;
    private TreeNode firstChild;
    private TreeNode nextSibling;

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public TreeNode getFirstChild() {
        return firstChild;
    }

    public void setFirstChild(TreeNode firstChild) {
        this.firstChild = firstChild;
    }

    public TreeNode getNextSibling() {
        return nextSibling;
    }

    public void setNextSibling(TreeNode nextSibling) {
        this.nextSibling = nextSibling;
    }
}
